#include<stdio.h>
void main()
{
	void swap(int * p1, int * p2);
	int a, b, * pointer_1, * pointer_2;
	scanf("%d, %d", &a, &b);
	pointer_1 = &a; pointer_2 = &b;
	if(a < b)
	{
		swap(pointer_1, pointer_2);
	}
	printf("a=%d, b=%d\n", a, b);
	printf("max=%d, min=%d\n", * pointer_1, * pointer_2);
}

void swap(int * p1, int * p2)
{
	int temp;
	temp = * p1;
	* p1 = * p2;
	* p2 = temp;
}
